//
//  VideoCell.m
//  ijkPlayer
//
//  Created by apple on 2018/6/5.
//  Copyright © 2018年 锦. All rights reserved.
//

#import "VideoCell.h"

@implementation VideoCell
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self imageView];
        
    }
    return self;
}
-(UIImageView *)imageView{
    if (!_imageView) {
        CGRect rect = [UIScreen mainScreen].bounds;
        _imageView = [[UIImageView alloc]initWithFrame:rect];
        _imageView.contentMode = UIViewContentModeScaleAspectFill;
        _imageView.backgroundColor = [UIColor blackColor];
        
        UIView *view = [[UIView alloc]initWithFrame:rect];
        view.backgroundColor = [UIColor clearColor];
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, rect.size.height-100, 100, 30)];
        _nameLabel.backgroundColor = [UIColor blueColor];
        [view addSubview:_nameLabel];
        _selectedView = view;
        
        [self.contentView addSubview:_imageView];
        [self.contentView addSubview:view];
    }
    return _imageView;
}


@end
